﻿using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zj.Blog.Quarz.Net
{
    public class TimeJob : IJob
    {
        
        public void Execute(IJobExecutionContext context)
        {
            var i = context.RefireCount;
            var currentTime = DateTime.Now.ToString("yyyyMMdd hh:mm:ss");
            Console.WriteLine(string.Format("第{0}次{1}", i, currentTime));
        }
    }
}
